import pygame
from game import Game


class Portal:
    def __init__(self, left: int, top: int):
        self.Portal_image0 = pygame.image.load("Img/传送门.png")
        self.Portal_image = pygame.transform.scale(self.Portal_image0, (100, 150))
        self.Portal_rect = self.Portal_image.get_rect()
        self.Portal_rect.left = left
        self.Portal_rect.top = top

    def portal_display(self):
        Game.window.blit(self.Portal_image, self.Portal_rect)


